﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ARS.Control.Custom.SelectLinkage.Attributes;

namespace WebTest.ControlTest
{
    public partial class sl : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var dss = new DbSelectSL();
            dss.TableName = "ums_role";
            dss.DataTextField = "UMS_RoleName";
            dss.DataValueField = "Id";

            var dss1 = new DbSelectSL();
            dss1.TableName = "ums_rolepermins";
            dss1.DataValueField = "Id";
            dss1.DataTextField = "UMS_PerminsId";
            dss1.ParentNameField = "UMS_RoleId";
            this.SelectLinkage1.DbSelectSLListItem = new DbSelectSL[]
            {
                dss,
                dss1,
            };
            //this.SelectLinkage1.DropDownListItem
        }
    }
}